package com.funo.wcity.app.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.funo.wcity.app.entity.TblIpMail;

@Repository("tblIpMailDAO")
public class TblIpMailDAO extends DefaultBaseDao<TblIpMail,Integer>{

	/**
	 * 通过IP地址查询：国家及公司
	 * @param
	 * 		ipMail  
	 * 			来信ip地址
	 */
	public List getTblIpMailList(Long ipMail){
		String hql=" From TblIpMail m where "+ipMail+" BETWEEN m.ipStart and m.ipEnd";
		return this.hibernateTemplate.find(hql);
	}
}
